<?php require_once('Connections/locamedicadmin.php'); ?>

<?php include('userValidation.php'); ?>

<?php include('functions.php'); ?>

<?php


if ((isset($_GET['csss_id'])) && ($_GET['csss_id'] != "")) {
  $deleteSQL = sprintf("update csre_csss set deleted = 1 WHERE csss_id=%s",
                       GetSQLValueString($_GET['csss_id'], "int"));

  mysql_select_db($database_locamedicadmin, $locamedicadmin);
  $Result1 = mysql_query($deleteSQL, $locamedicadmin) or die(mysql_error());

  $deleteGoTo = "CSSS_list.php";
  if (isset($_SERVER['QUERY_STRING'])) {
    $deleteGoTo .= (strpos($deleteGoTo, '?')) ? "&" : "?";
    $deleteGoTo .= $_SERVER['QUERY_STRING'];
  }
  header(sprintf("Location: %s", $deleteGoTo));
}
?>